package cn.t.dynamic.switcher.demo;

import cn.t.dynamic.switcher.annotation.Dynamic;
import cn.t.dynamic.switcher.demo.mapper.DemoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {

    @Autowired
    private DemoService service;

    @RequestMapping("/index")
    public String index(String... args) throws Exception {
        this.service.insert();
        return "hello world";
    }
}
